﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace CommonLib.CameraExtend
{
	public abstract class CameraMangaerBase : ISingleton<CameraMangaerBase>
	{
		protected Dictionary<string, CameraInfor> m_CameraDic;

		//获取所有摄像机
		protected virtual void Awake()
		{
			m_CameraDic = new Dictionary<string, CameraInfor>();
			Camera[] cameraArray = gameObject.GetComponentsInChildren<Camera>();
			/*
			for (int index = 0; index < cameraArray.Length; index++)
			{
				var tempInfor = new CameraInfor()
				{
					m_Camera = cameraArray[index],
					m_CameraName = cameraArray[index].name
				};
				m_CameraDic.Add(cameraArray[index].name, tempInfor);
			}
			*/
		}

		public virtual void GetCameraIfMissing() {

		}
	}
}